package com.axend.lib_room.entity

import android.os.Parcelable
import androidx.annotation.NonNull
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.axend.lib_service.Constant
import kotlinx.parcelize.Parcelize

/**
 * 存储数据
 */
@Parcelize
@Entity(tableName = Constant.TABLE_RECORD_DATA)
data class SaveRecordEntity(
    @NonNull
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "id")
    val id: Int,
    /**
     * 实际体表温度
     */
    var temperature: Float,
    /**
     * 实际体内温度
     */
    var temperatureBody: Float,
    /**
     * 校准体表温度
     */
    var temperatureCalibration: Float,
    /**
     * 体表温度差值
     */
    var temperatureDifference: Float,
    /**
     * 记录时间
     */
    @NonNull
    @ColumnInfo(name = "date")
    val date: String,

): Parcelable{
    constructor() : this(0, 0f, 0f, 0f, 0f,"")
}